﻿@model Wedo.Mvc.Pager.PagedList<DisputeApply>
<table class="table">
    <thead>
        <tr>
            <th>
                银行账单
            </th>
            <th>
                争议原因
            </th>
            <th style="width:80px">
                申请人
            </th>
            <th style="width:80px">
                申请时间
            </th>
            <th style="width:40px">
                状态
            </th>
            <th style="width:80px">
                审核人
            </th>
            <th style="width:80px">
                审核时间
            </th>
            <th style="width:80px">
            </th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @Html.DetailsLink(item.Id, item.BankData.Assiginment)
                </td>
                <td>@item.DisputeReason
                </td>
                <td>
                    @BindDropDownList.GetUserName(item.ApplyMan)
                </td>
                <td>@Html.DisplayFor(m => item.ApplyTime)
                </td>
                <td>@BindDropDownList.ApprovalName(item.Status)
                </td>
                <td>
                    @BindDropDownList.GetUserName(item.Approver)
                </td>
                <td>@Html.DisplayFor(m => item.ApprovelTime)
                </td>
                <td>
                    @if (item.Status == 1 && item.ApplyMan == User.Identity.Name)
                    { 
                        @Html.ShortcutLink("取消", "Cancel", new { item.Id })
                    }
                </td>
            </tr>
        }
    </tbody>
</table>
@Html.CommonPager(Model, ViewData["SearchModel"])
